package com.wormhole.wormholemanagement.utils;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.List;

public class OperatorDetails extends User {
    private final Long operatorId;

    public OperatorDetails(String username, String password,
                           Long operatorId) {
        super(username, password, List.of(new SimpleGrantedAuthority("ROLE_ADMIN")));
        this.operatorId = operatorId;
    }

    public Long getOperatorId() {
        return operatorId;
    }
}